home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / misc / math / MathFX_src.lha / setpxl.c < prev    next >
C/C++ Source or Header  |  1995-12-20  |  247b  |  14 lines

  1. /* Sets up pixel size from the number of pixels/mm in each direction */
  2.  
  3. #include "mathfx.h"
  4. #include "declare.h"
  5.  
  6. void setpxl(xpmm0,ypmm0)
  7. float xpmm0,ypmm0;
  8. {
  9.     xpmm = xpmm0;
  10.     ypmm = ypmm0;
  11.     umx  = 1000.0/xpmm;
  12.     umy  = 1000.0/ypmm;
  13. }
  14.